<template>
  <div class="parent">
    <h1>父路由</h1>
    <button @click="goChild">跳转</button>
  </div>
</template>

<script>
export default {
  methods: {
    goChild() {
      this.$router.push('/child')
    }
  }
}
</script>

<style scoped>
.parent {
  height: 100%;
  background-color: lightblue;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

button {
  margin-top: 20px;
}
</style>
